package mspbots.qbd.data.online.generalledger;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Mono;


/**
 * @author Jay.Yang
 */
public interface OnlineGeneralLedgerRepository extends R2dbcRepository<OnlineGeneralLedger, Long> {

    /**
     * find entity other id and tenant id
     *
     * @param tenantId   tenant id
     * @param timePeriod timePeriod
     * @return account entrity
     */
    Mono<OnlineGeneralLedger> findByTenantIdAndTimePeriod(Long tenantId, String timePeriod);
}
